const separatorMoney = val => {
  const str = val.toString()
  const reg = /(\d{1,3})(?=(\d{3})+(?:$|\.))/g
  return str.replace(reg, '$1,')
}

export default {
  separatorMoney,
}
